package cn.yh.springbootjwt.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "登录查询对象")
//@NoArgsConstructor
public class LoginQuery {
    @ApiModelProperty(value = "用户名", required = true, dataType = "String")
    @NotNull(message = "用户名不能为空")
    private String username;
    @ApiModelProperty(value = "密码", required = true,dataType = "String")
    @NotNull(message = "密码不能为空")
    private String password;
}
